//
//  YWRecordsManager.h
//  maintain
//
//  Created by Kyo on 16/9/24.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWSingleton.h"

@interface YWRecordsManager : NSObject
YWSingletonH(Manager)


/**
 *  请求查询报障记录
 *
 *  @return 结果
 */
- (void)selectPostTroubleRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId reporterId:(NSInteger)reporterId status:(NSInteger)status source:(NSInteger)source complete:(void (^)(NSArray *recordArray))complete;

/**
 *  请求查询维修记录
 *
 *  @return 结果
 */
- (void)selectTroubleRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId complete:(void (^)(NSArray *recordArray))complete;


/**
 *  请求查询巡更记录
 *
 *  @return 结果
 */
- (void)selectKeepWatchRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status lineId:(NSInteger)KeepWatchLineId complete:(void (^)(NSArray *recordArray))complete;

/**
 *  请求查询巡查记录
 *
 *  @return 结果
 */
- (void)selectInspectionRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status lineId:(NSInteger)inspectionLineId complete:(void (^)(NSArray *recordArray))complete;

/**
 *  请求查询抄表记录
 *
 *  @return 结果
 */
- (void)selectMeterReadingRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status complete:(void (^)(NSArray *recordArray))complete;

/**
 *  请求查询检测记录
 *
 *  @return 结果
 */
- (void)selectDetectRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status type:(NSInteger)type complete:(void (^)(NSArray *recordArray))complete;
/**
 *  请求查询临时检测记录
 *
 *  @return 结果
 */
- (void)selectTempDetectRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status type:(NSInteger)type complete:(void (^)(NSArray *recordArray))complete;
/**
 *  请求查询保养记录
 *
 *  @return 结果
 */
- (void)selectUpkeepRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status type:(NSInteger)type complete:(void (^)(NSArray *recordArray))complete;
/**
 *  请求查询临时保养记录
 *
 *  @return 结果
 */
- (void)selectTempUpkeepRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId status:(NSInteger)status type:(NSInteger)type complete:(void (^)(NSArray *recordArray))complete;
/**
 *  请求查询签到记录
 *
 *  @return 结果
 */
- (void)selectAttendanceRecord:(NSInteger)page date:(NSString*)date buildingId:(NSString*)buildingId executorId:(NSInteger)executorId type:(NSInteger)type complete:(void (^)(NSArray *recordArray))complete;


@end
